$(document).ready(function () {
    $("#accordion").accordion().hide();
    $("a.open-dialog").click(function(){
        var overlay = {
            autoOpen: true,
            height: 330,
            width: 700,
            modal: true,
            title: "Login Help",
            draggable: false,
            open: function(){
                $('#accordion').accordion({
                    collapsible: true,
                    heightStyle: "content",
                    animate: 450,
                    active: 4
                }).show();
        },
            buttons: {
                'Close': function(){
                    $(this).dialog('close');
                }
            }
        };
            
            $('.dialog').dialog(overlay).show();
            $(".ui-dialog-titlebar").removeClass("ui-widget-header");
    });
});
